package cn.edu.stu.syllabus.library.star;

import java.util.List;

import cn.edu.stu.syllabus.base.BasePresenter;
import cn.edu.stu.syllabus.base.BaseView;
import cn.edu.stu.syllabus.base.IStorable;
import cn.edu.stu.syllabus.repository.library.local.BookEntry;

/**
 * Created by daidaijie on 2017/4/1.
 */

public class BookStarContract {

    interface Presenter extends BasePresenter, IStorable {
        void loadStarBookEntries();

        void unstarBook(BookEntry bookEntry, int position);

    }

    interface View extends BaseView<Presenter> {
        void showDataEmpty();

        void showDataError();

        void setBookList(List<BookEntry> bookEntries);

        void appendBookList(List<BookEntry> bookEntries);

        void showLoadingFail();

        void showLoadingEnd();

        void removeUnstarBook(int position);
    }
}
